#!/usr/bin/evn python
#coding:utf-8
import urllib2
for line in urllib2.urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'):
  if 'EST' in line or 'EDT' in line:  # look for Eastern Time
    print line
    
import smtplib
server = smtplib.SMTP('guarani')
server.sendmail('ricardo.brito@planalto.gov.br', 'ricardo.brito@palacio.planalto.gov.br',
"""To: ricardo.brito@planalto.gov.br
From: ricardo.brito@palacio.planalto.gov.br
Subject: teste

Teste funcionou perfeitamente!!!!!
estou de parabéns
""")
server.quit()
